package com.zengge.zbc;


import com.zengge.zbc.utils.SnowFlakeId;
import com.zengge.zbc.utils.SnowFlakeIdGenerator;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication(scanBasePackages = "com.zengge.zbc")
@MapperScan(basePackages = "com.zengge.zbc.mapper")
public class MainApplication {

    public static void main(String[] args) {
        SnowFlakeIdGenerator.init(new SnowFlakeId(0, 0));
        SpringApplication springApplication = new SpringApplication(MainApplication.class);
        springApplication.run(args);

    }

}
